package cn.dubito.sshl.dao.notice.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.dubito.sshl.common.PageModel;
import cn.dubito.sshl.dao.impl.HibernateDaoImpl;
import cn.dubito.sshl.dao.notice.dao.NoticeDao;
import cn.dubito.sshl.domain.Notice;


/**
 * NoticeDaoImpl
 */
@Repository("noticeDao")
public class NoticeDaoImpl extends HibernateDaoImpl implements NoticeDao {
	/**
	 * 分页查询公告
	 * @param pageModel
	 * @return 集合
	 */
	public List<Notice> getNoticeByPage(PageModel pageModel){
		String hql = "select s from Notice s order by s.id";
		return this.findByPage(hql, pageModel, null);
	}
}
